import { ApiBearerAuth, ApiProperty } from '@nestjs/swagger';
import { Tag } from 'src/tag/tag.entity';
import { Type } from 'src/type/type.entity';
import { User } from 'src/user/user.entity';

export class BlogDto {
    @ApiProperty()
    title: string

    @ApiProperty()
    introduction: string

    @ApiProperty()
    firstPicture: string

    @ApiProperty()
    views: number

    userId: number

    user: User

    @ApiProperty()
    content: string

    @ApiProperty()
    typeId: number

    type: Type

    @ApiProperty()
    tagIds: number[]

    tags: Tag[]
}